<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i> 订单管理</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">
            <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                    <div class="layui-inline">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block timo-search-status">
                            <select class="timo-search-select" name="status" mo:dictKey="SEARCH_STATUS" mo-selected="${param.status}"></select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">预约编号</label>
                        <div class="layui-input-block">
                            <input type="text" name="fkSubscribeId" th:value="${param.fkSubscribeId}" placeholder="请输入预约编号" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">订单名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" th:value="${param.name}" placeholder="请输入订单名称" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">订单客户方编号</label>
                        <div class="layui-input-block">
                            <input type="text" name="fkConsumerId" th:value="${param.fkConsumerId}" placeholder="请输入订单客户方编号" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" th:value="${param.title}" placeholder="请输入标题" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn timo-search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
                <div class="pull-right screen-btn-group">
                    <button class="layui-btn open-popup" data-title="添加订单" th:attr="data-url=@{/orderSurvey/add}"  data-size="600,500">
                        <i class="fa fa-plus"></i> 添加</button>
                    <div class="btn-group">
                        <button class="layui-btn">操作<span class="caret"></span></button>
                        <dl class="layui-nav-child layui-anim layui-anim-upbit">
                            <dd><a class="ajax-status" th:href="@{/orderSurvey/status/ok}">启用</a></dd>
                            <dd><a class="ajax-status" th:href="@{/orderSurvey/status/freezed}">冻结</a></dd>
                            <dd><a class="ajax-status" th:href="@{/orderSurvey/status/delete}">删除</a></dd>
                        </dl>
                    </div>
                </div>
            </div>
            <table class="layui-table timo-table">
                <thead>
                <tr>
                    <th class="timo-table-checkbox">
                        <label class="timo-checkbox"><input type="checkbox">
                            <i class="layui-icon layui-icon-ok"></i></label>
                    </th>
                    <th>主键ID</th>
                    <th>预约编号</th>
                    <th>订单名称</th>
                    <th>数据状态</th>
                    <th>订单预付金额</th>
                    <th>订单后付金额</th>
                    <th>订单客户方编号</th>
                    <th>订单客户方手机</th>
                    <th>订单客户方地址</th>
                    <th>标题</th>
                    <th>创建时间</th>
                    <th>更新时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
                        <i class="layui-icon layui-icon-ok"></i></label></td>
                    <td th:text="${item.id}">主键ID</td>
                    <td th:text="${item.fkSubscribeId}">预约编号</td>
                    <td th:text="${item.name}">订单名称</td>
                    <td th:text="${#dicts.dataStatus(item.status)}">状态</td>
                    <td th:text="${item.repayMoney}">订单预付金额</td>
                    <td th:text="${item.payMoney}">订单后付金额</td>
                    <td th:text="${item.fkConsumerId}">订单客户方编号</td>
                    <td th:text="${item.consumerPhone}">订单客户方手机</td>
                    <td th:text="${item.consumerAddr}">订单客户方地址</td>
                    <td th:text="${item.title}">标题</td>
                    <td th:text="${#dates.format(item.createDate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</td>
                    <td th:text="${#dates.format(item.updateDate, 'yyyy-MM-dd HH:mm:ss')}">更新时间</td>
                    <td>
                        <a class="open-popup" data-title="编辑订单" th:attr="data-url=@{'/orderSurvey/edit/'+${item.id}}"  data-size="600,500" href="#">编辑</a>
                        <a class="open-popup" data-title="详细信息" th:attr="data-url=@{'/orderSurvey/detail/'+${item.id}}"  data-size="800,600" href="#">详细</a>
                        <a class="ajax-get" data-msg="您是否确认删除" th:href="@{/orderSurvey/status/delete(ids=${item.id})}">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
            <div th:replace="/common/fragment :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>
